package com.qiyadeng.thread;

public class ChildTreeNode implements Runnable {

	private TreeNode parentNode;
	private TreeNode childNode;
	
	public ChildTreeNode(){}
	
	public ChildTreeNode(TreeNode parentNode,TreeNode childnode){
		this.parentNode = parentNode;
		this.childNode = childnode;
	}
	
	@Override
	public void run() {
		parentNode.addChild(childNode);
	}

}
